package com.jimmy.medical.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

/**
 * @Desc: 订单诊断（添加诊断使用）

 * @author jimmy

 * @date 2018-04-22
 */
@Entity
@Table(name = "order_diagnose")
public class OrderDiagnose extends AbstractEntity {
	
	/**病名*/
	@Column(name = "disease_name")
	private String diseaseName;
	
	/**
	 * 管理效果
	 */
	@Column(name = "management_effect")
	private String managementEffect;
	
	/** 对应的订单*/
	@ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "order_id")
    @NotFound(action = NotFoundAction.IGNORE)
    private Order order;
	
    /** 操作人*/
	@Column(name = "create_user")
	private String createUser;
	
	/**操作时间*/
	@Column(name = "create_time", length = 20)
	private String createTime;
	
	/** 更新人*/
	@Column(name = "update_user")
	private String updateUser;
	
	/**更新时间*/
	@Column(name = "update_time", length = 20)
	private String updateTime;


	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getDiseaseName() {
		return diseaseName;
	}

	public void setDiseaseName(String diseaseName) {
		this.diseaseName = diseaseName;
	}

	public String getManagementEffect() {
		return managementEffect;
	}

	public void setManagementEffect(String managementEffect) {
		this.managementEffect = managementEffect;
	}

	
}
